<%@ page language="java" pageEncoding="utf-8"%>
<%@page import="java.util.ArrayList"%>
<%@page import="com.entity.GoodsEvaluate"%>
<%@page import="com.entity.GoodsType"%>
<%@page import="com.util.PublicToolShowDetailTypeList"%>
<%@page import="com.util.PublicToolGetTypeDetailInfo"%>
<%@page import="com.dao.GoodsTypeDetailInfoDAO"%>
<%@page import="com.entity.GoodsType"%>
<%@page import="com.entity.GoodsTypeDetail"%>
<%@page import="com.util.PublicToolCheckParam"%>
<%@page import="com.entity.SalesGoods"%>
<%@page import="com.util.PublicToolShowGooodsTypeList"%>
<%@page import="com.entity.BulletinInfo"%>

<%@page import="com.entity.GoodsInfo"%>
<%@page import="com.util.PublicToolIndexProductShow"%>
<%@page import="com.entity.GoodsTypeDetail"%>
<%@page import="com.entity.GoodsEvaluate"%>
<%@page import="com.util.PublicToolCheckParam"%>
<%@page import="com.entity.SalesGoods"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<%
	String email = (String)session.getAttribute("email");
	String thirdemail = (String)session.getAttribute("thirdemail");
 %>

<HTML>
<HEAD>
<META content="text/html; charset=utf-8" http-equiv="Content-Type">
<base href="<%=basePath%>">
<TITLE>公告信息</TITLE>
<STYLE title="defaultStyle" type="text/css">
#mainleft {
	float: left;
	width: 306px;
}
#mainright {
	float: right;
	width: 669px;
	background-color: #FFFFFF;
}
/*主页面右侧的左栏,定义间距和宽度*/
#mainright_1 {
	margin-top: 0px;
}
#mainrightleft {
	float: left;
	width: 521px;
	background-color: #FFFFFF;
}
#zmxy img {
	background-color: #FFFFFF;
	border-right-width: 5px;
	border-left-width: 5px;
	border-right-style: solid;
	border-left-style: solid;
	border-right-color: #FFFFFF;
	border-left-color: #FFFFFF;
	border-top-width: 5px;
	border-bottom-width: 5px;
	border-top-style: solid;
	border-bottom-style: solid;
	border-top-color: #FFFFFF;
	border-bottom-color: #FFFFFF;
}
#zmxy a {
	text-decoration: none;
}
</STYLE>
<LINK rel="stylesheet" type="text/css" href="images/style.css">
<STYLE type="text/css">
<!--
.STYLE1 {
	color: #A42E2E
}
-->
</STYLE>
<script type="text/javascript">
	function checkLogin(){
		if("<%=email%>" == "" || "<%=email%>" == "null"){
			alert("请先登陆!");
			return false;
		}
		else{
			top.location.href = "servlet/DoMethod?method=showMyInformation";
				return true;
		}
	}
	function checkUserLogin(){
		if("<%=email%>" == "" || "<%=email%>" == "null"){
			alert("请先登陆!");
			return false;
		}
		else{
			top.location.href = "servlet/DoChatMethod?method=login";
			return true;
		}
	}
</script>
</HEAD>
<body>
<DIV id="container_page">
  <jsp:include page="top.jsp" flush="true" />
  
  <!-- end header-->



  <DIV class="space"></DIV>
  <DIV id="container_content">
    <TABLE border="0" cellSpacing="0" cellPadding="0" width="912" align="center">
      <TBODY>
        <TR>
          <TD width="270" valign="top">  <jsp:include page="left.jsp" flush="true" />
</TD>
          <TD vAlign="top" width="645">
          
           <table border="0" cellspacing="0" cellpadding="0" width='100%' align="center">
  <tr height="60">
    <td><font size="2" color="#999999">您现在所在位置：网站首页&gt; 网站公告&gt; 公告信息</font></td>
  </tr>
</table>
<br/>
<form id="form1" name="form1" method="post" action="servlet/Bulletin" onsubmit="return checkGo()">
<table  height="110" border="0" cellpadding="0" cellspacing="0" style="font-size:13px; " width='100%' align="center">
  <%
		ArrayList<BulletinInfo> moreBulletinInfoList = (ArrayList<BulletinInfo>)request.getAttribute("moreBulletinInfoList");
			for(int i=0;i<moreBulletinInfoList.size();i++){
				BulletinInfo bulletin = moreBulletinInfoList.get(i);
				out.println("<tr><td width='296' height='24'><a href='servlet/ShowBulletinInfo?id="+bulletin.getId()+"'>"+bulletin.getTitle()+"</a></td><td width='804'><font color='#666666'>"+bulletin.getCreateTime()+"</font></td></tr>");
			}
	%> 	
  <tr>
    <td colspan="2"  align="right">
    共有<%=request.getAttribute("sumCount")%>条公告
    &nbsp;&nbsp;&nbsp;
    第<%=request.getAttribute("currentPage")%>/<%=request.getAttribute("sumPageCount")%>页
    &nbsp;&nbsp;&nbsp;
    <a href="../servlet/Bulletin?cp=<%=request.getAttribute("indexPage")%>">首页</a>
    &nbsp;&nbsp;
    <a href="../servlet/Bulletin?cp=<%=request.getAttribute("upPage")%>">上一页</a>
    &nbsp;&nbsp;
    <a href="../servlet/Bulletin?cp=<%=request.getAttribute("nextPage")%>">下一页</a>
    &nbsp;&nbsp;
    <a href="../servlet/Bulletin?cp=<%=request.getAttribute("lastPage")%>">尾页</a>
    &nbsp;&nbsp;&nbsp;
    跳至第&nbsp;&nbsp;<input type="text" id="go" name="cp" style="width: 35px"/>&nbsp;&nbsp;页
    <input type="submit" value="go" style="width: 30px;cursor:pointer;"/></td>
  </tr>
</table>
</form>
  </DIV>

  
 <jsp:include page="bottom.jsp" flush="true" /></div>
</body>
</html>
